﻿#region Using directives
using System;
using System.Collections.Generic;
using System.Web.UI;
using System.Web.UI.WebControls;
#endregion



namespace webapp4U.UI
{
    [ParseChildren(true)]
    public class ddlLanguages : DropDownList
    {
        public ddlLanguages()
        {
            List<webapp4U.BOL.Languages> obj = webapp4U.BOL.Languages.GetAllLanguages();
            this.DataSource = obj;
            this.DataValueField = "LanguageCode";
            this.DataTextField = "LanguageName";
            this.DataBind();
            this.Items.Insert(0, new ListItem(Globals.GetLang("Chọn ngôn ngữ", "Select Languages"), ""));
        }
    }
}
